package design.patterns.creational.builder.v2;

/**
 * @author gjx
 * @version v1.0
 * @Description
 * @date 2019/3/28 17:13
 */

/**
 * 抽象建造者类中定义了产品的创建方法和返回方法
 */
public abstract class AbstractComputerBuilder {
    protected Computer computer = new Computer();

    public abstract void buildMemory();
    public abstract void buildHardDisk();
    public abstract void buildCpu();
    public abstract void buildMainBoard();

    public Computer build(){
        return  computer;
    }
}
